From: Daniel F. Dickinson Date: Sat, 13 Dec 2025 06:29:36 +0000 (-0500) Subject: postgresql: fix missing symbols at runtime X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;p=feed%2Fpackages.git postgresql: fix missing symbols at runtime Fixes pgsql-server: the setup fails for any folder Fixes #27228 Sets postgresql-specific configure flags that configure cannot run-test to determine their value. This fixes improperly linked files that prevent database initialization (at least) from working on the device. Signed-off-by: Daniel F. Dickinson --- diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 6cdbab9cde..df49f1e6e3 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postgresql PKG_VERSION:=17.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=PostgreSQL PKG_CPE_ID:=cpe:/a:postgresql:postgresql @@ -119,7 +119,9 @@ PGSQL_CONFIG_VARS:= \ pgac_cv_snprintf_size_t_support=yes \ USE_DEV_URANDOM=1 \ ac_cv_file__dev_urandom="/dev/urandom" \ - ZIC=zic + ZIC=zic \ + pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic=yes \ + pgac_cv_prog_cc_LDFLAGS__Wl___as_needed=yes TARGET_CONFIGURE_OPTS+=$(PGSQL_CONFIG_VARS)